package com.langhu.controller;

import com.langhu.dao.IndexMapper;
import com.langhu.entity.NocvData;
import com.langhu.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@Controller
public class IndexConrtoller {

    @Autowired
    private IndexService service;

    @RequestMapping(value = "/query",method = RequestMethod.GET)
    public List<NocvData> queryData(){
        List<NocvData> nocvData = service.queryData();
        return nocvData;
    }
}
